<template>
  <!-- <el-menu mode="horizontal" @select="handleSel" ref="menu" router :default-active="activeIndex">
    <el-menu-item index="/algo">算法</el-menu-item>
    <el-menu-item index="/big_upload">大文件</el-menu-item>
    <el-menu-item index="/home">首页</el-menu-item>
    <el-menu-item index="/socket">socket</el-menu-item>
  </el-menu> -->
  <router-view v-slot="{ Component }">
    <component :is="Component"></component>
  </router-view>
</template>
<script setup>
import { onMounted, ref } from 'vue';

  let activeIndex = ref(null);

  let menu = ref(null);
  
  const handleSel = (key)=>{
    console.log(key)
  }

  //自动触发某个菜单选项
  onMounted(()=>{
    // activeIndex.value = "/big_upload";
    console.log(menu.value)
  })
</script>
<style>
body {
  margin: 0px !important;
  padding: 0px;
}
</style>
